package com.nycreativity.elecreativity.entity.vo.file

import com.baomidou.mybatisplus.annotation.IdType
import com.nycreativity.elecreativity.entity.BaseEntity
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName

/**
 * <p>
 *  文件
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-25
 */
@TableName("file")
class FileVO : BaseEntity() {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    var id: Long? = null

    /**
     * 文件tag
     */
    var tag: String? = null

    /**
     * 文件二级tag
     */
    var secondaryTag: String? = null

    /**
     * 文件访问全路径
     */
    var fileFullPath: String? = null

    /**
     * 文件相对路径
     */
    var fileRelativePath: String? = null

    /**
     * 文件文件夹
     */
    var folder: String = "default"

    /**
     * 文件名
     */
    var fileName: String? = null

    /**
     * 文件描述
     */
    var des: String? = null


    override fun toString(): String {
        return "File{" +
                "id=" + id +
                ", tag=" + tag +
                ", secondaryTag=" + secondaryTag +
                ", fileFullPath=" + fileFullPath +
                ", fileRelativePath=" + fileRelativePath +
                ", folder=" + folder +
                ", fileName=" + fileName +
                ", des=" + des +
                ", ${super.toString()}}"
    }
}
